// 创建类组件模板代码
import React from "react";
import { NavLink } from "react-router-dom";
import './index.scss'
export default class Footer extends React.Component{
    render(){
        const {routes} = this.props
        return(
            <ul className="footer">
                {
                    routes.map(item=><li key={item.path}><NavLink to={item.path}>
                        <span className={item.meta.icon} id='icon'></span>
                        <span>{item.meta.title}</span>
                    </NavLink></li>)
                }
            </ul>
        )
    }
}